﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MyVoteMVC.Service;
using MyVoteMVC.Common;

namespace MyVoteMVC.Web.Controllers
{
    public abstract class VoteBaseController : Controller
    {
        protected override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            using (IDictionariesService pService = Factory.GetInstance<IDictionariesService>())
            {
                var dic = pService.GetByName("帮助文档地址");
                ViewData["Document"] = dic.Dictionary_Value;
            }

            base.OnActionExecuted(filterContext);
        }

    }
}
